package com.tongji.showroom.model
{
	import com.adobe.serialization.json.JSON;
	
	import mx.collections.ArrayCollection;
	
	import org.robotlegs.mvcs.Actor;

	/**
	 *
	 * @author caddy
	 * @date 2011-11-15
	 */
	public class UserSceneModel extends Actor
	{				
		[Bindable]
		public var userSceenArray:ArrayCollection;
		
		public var userScene:String;
		
		public function UserSceneModel()
		{
		}
		
		public function updateUserScene(userScene:String):void
		{
			this.userScene = userScene;
			var arr:Array = (JSON.decode(userScene) as Array);
			var sceneArr:ArrayCollection = new ArrayCollection(arr);
			userSceenArray = new ArrayCollection(sceneArr[0].VR_SceneList);
		}
	}
}